<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>龙现东海--期货历史</title>
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/reset.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/swiper_2.7.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common//css/header.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common//css/footer.css">
    <link rel="stylesheet" href="{{$static_path}}/static/css/search/search.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/common.css">
    <script src="{{$static_path}}/static/common/js/jquery-1.11.3.js"></script>
</head>

</head>

<body>
    <!-- 头部部分 -->
    {{include file="header.tpl"}}
    <!-- 内容区域 -->
    <div class="dh-main">
        <div class="dh-banner"></div>
        <div class="box-main">
            {{content pageArgs=[3,4,5,6,7]}}
            <div class="search-top">
                <div class="left-search">
                    <h2>搜索结果</h2>
                    <p>关键词“<span>{{if isset($smarty.get.key)}} {{$smarty.get.key}} {{/if}}</span>”为您找到<strong>{{$pageInfo['count']}}</strong> 条相关结果</p>
                </div>
                <div class="right-search">
                    <form>
                        <div>
                            <input type="text" name='key' placeholder="搜索">
                            <img class="serch-gos" src="{{$static_path}}/static/images/search.png" alt="">
                        </div>
                        <button type="submit">搜索</button>
                    </form>
                </div>
            </div>
            <ul class="search-list">
                {{foreach $list as $k => $v}}
                    <li>
                        <a href="{{$v['url']}}">
                            <img class="simg" src="{{$v['preview'][0]}}" alt="">
                            <div>
                                <h3>{{$v['title']}}</h3>
                                <p>{{$v['describe']}}</p>
                            </div>
                        </a>
                    </li>
                {{/foreach}}
            </ul>
            <!-- 分页 -->
            <div class="dywPages">
                {{$pageInfo['html']}}
            </div>
            {{/content}}
        </div>


    </div>

    <!--放一个id为footer的div,把footer.html加载到这块-->
    {{include file="footer.tpl"}}
    <!-- 底部部分 -->
</body>

<!-- 加载头尾 -->

<script src="{{$static_path}}/static/common/js/load.js"></script>
<script src="{{$static_path}}/static/common/js/swiper_2.7.js"></script>
<script>
$('.simg').each(function(v,m){
    $(this).attr('src')
    if($(this).attr('src') != ''){
       $(this).css('margin-right','30px')
        
    }
    
})

</script>

</html>